<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Object</title>
</head>
<body>
<h1>object</h1>
<div>
    `*{...}`表达式：
    <b th:object="${student}">
        <span th:text="*{username}"></span>
        <hr>
        <span th:text="*{password}"></span>
    </b>
</div>
<hr>
<div>
    <div>如果页面需要不在`th:object`包裹下获取对象中的元素，可以使用如下：</div>
    <span th:text="${student.username}"></span>
    <hr>
    <span th:text="${student.password}"></span>
</div>
</body>
</html>